//var host = "http://rest.uncode.cn";
//var loginUrl="http://www.uncode.cn/login.html";
//var adminUrl = "http://www.uncode.cn/admin";

//var host = "http://127.0.0.1:8181";
//var loginUrl="http://127.0.0.1:8181/developer/login.html";
//var adminUrl = "http://127.0.0.1:8181/admin/login.html";

var schema = "http";
var serverPath = "127.0.0.1";
var serverPort = "8080";
var contextPath = "/uncode-baas";

var hostUrl = schema+"://"+serverPath+":"+serverPort+contextPath;

var admin = hostUrl+"/admin";
//var adminUrl = "http://127.0.0.1:8080/uncode-baas/admin/login.html";
var adminLogin = admin+"/login.html";

var developer = hostUrl+"/developer";
//var loginUrl="http://127.0.0.1:8080/uncode-baas/developer/login.html";
var developerLogin=developer+"/login.html";

function jsImport() {
	for (var i = 0; i < arguments.length; i++) {
		var file = arguments;
		if (file.match(/\\.js$/i))
			document.write('<script type=\\"text/javascript\\" src=\\"' + file
					+ '\\"></sc' + 'ript>');
		else
			document.write('<style type=\\"text/css\\">@import \\"' + file
					+ '\\" ;</style>');
	}
};